Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata to missing nodes #112

Merged
merged 2 commits into from
Aug 20, 2024

Conversation

bvogginger
Copy link
Collaborator

In the previous version, not all nodes had the metadata attribute.
Metadata was now added to all missing nodes.

Also the tests for checking the metadata export/import was updated to consider all nodes in the graph.

@bvogginger bvogginger requested a review from Jegp August 15, 2024 15:02
Also fix metadata read write tests
@@ -1,7 +1,7 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.277
rev: v0.6.0
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I updated this to version 0.6.0 to have the same behaviour in pre-commit and during the github-actions-build.

@@ -49,3 +49,5 @@ find={include = ["nir*"]}
line-length = 100
lint.per-file-ignores = {"docs/conf.py" = ["E402"]}
exclude = ["paper/"]
extend-exclude = ["*.ipynb"]
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With version 0.6.0 of ruff, all notebooks are checked by default in ruff.
This lead to errors when checking the spyx example notebook: https://github.com/neuromorphs/NIR/actions/runs/10415679589.

To restore the previous behaviour, I excluded notebooks again.

@stevenabreu7
Copy link
Collaborator

Nice, thanks for the PR @bvogginger, it looks good to me!

@bvogginger bvogginger merged commit 95be0db into neuromorphs:main Aug 20, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants